package com.rgs.nginx.service;

import com.rgs.nginx.exption.ServiceException;
import org.springframework.stereotype.Service;

/**
 * @Classname TestServiceImpl
 * @Description TODO
 * @Date 2025/2/13 15:42
 * @Created by rgs
 */
@Service
public class TestServiceImpl {



    public String test(Integer a){
        int b = 5;

        if (a * b >6){
            throw new ServiceException("计算超出限制");
        }

        return "计算成功";
    }
}
